<?php /* Smarty version Smarty-3.0.9, created on 2013-04-07 20:05:47
         compiled from "index2.tpl" */ ?>
<?php /*%%SmartyHeaderCode:107985161d19b4d6387-33547940%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0ee82c3a19181c9e3b3c8f14c18613becf0cea7a' => 
    array (
      0 => 'index2.tpl',
      1 => 1365365142,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '107985161d19b4d6387-33547940',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <div>CREAR REPORTE-Harley Davidson</div>
		
		
<table cellspacing="10" cellpadding="1" border="4"> 
 <tr> 
    <td align="center" >
        <table cellspacing="0" cellpadding="1" border="1">
            <tr>
                <td>
                    No Guia: 
                    <input type="text" required id="noguia" name="noguia" autocomplete="off">
                    <input name="buscar" type="submit" value="Buscar">
                </td>
            </tr>
            <td>Lista de parametros de control para esta fase:<br>
			codigo nombre descripcion estado<br>
			
			<?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['i']->step = 1;$_smarty_tpl->tpl_vars['i']->total = (int)ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? sizeof($_smarty_tpl->getVariable('pcontrol')->value)+1 - (0) : 0-(sizeof($_smarty_tpl->getVariable('pcontrol')->value))+1)/abs($_smarty_tpl->tpl_vars['i']->step));
if ($_smarty_tpl->tpl_vars['i']->total > 0){
for ($_smarty_tpl->tpl_vars['i']->value = 0, $_smarty_tpl->tpl_vars['i']->iteration = 1;$_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total;$_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++){
$_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration == 1;$_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration == $_smarty_tpl->tpl_vars['i']->total;?>
			<?php  $_smarty_tpl->tpl_vars['a'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('pcontrol')->value[$_smarty_tpl->tpl_vars['i']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['a']->key => $_smarty_tpl->tpl_vars['a']->value){
?> 
				<?php echo $_smarty_tpl->tpl_vars['a']->value;?>

			<?php }} ?>
			<?php }} ?>
			</td>
            <tr>
                <td>Informacion del reporte
                <br>
                Codigo reporte: <?php echo $_smarty_tpl->getVariable('codreporte')->value;?>
   Hora Llegada: <?php echo $_smarty_tpl->getVariable('hllegada')->value;?>
   Hora salida: <?php echo (string)$_smarty_tpl->getVariable('hsalida')->value;?>

                <br>
                Fase anterior: <?php echo $_smarty_tpl->getVariable('fanterior')->value;?>
     Fase siguiente:    
                <select name="fsiguiente">
                    <option value="CORTE">CORTE</option>
                    <option value="MOLDEADO">MOLDEADO</option>
                    <option value="HIDROMOLDEADO">HIDROMOLDEADO</option>
                    <option value="SOLDADURA">SOLDADURA</option>
                </select>
                <br>
                Empleado: <?php echo (string)$_smarty_tpl->getVariable('empleado')->value;?>

                <br>
                Observaciones:
                <br>

                <textarea name="observaciones" cols="80" rows="10"></textarea>


                </td>
            </tr>
            <tr>
                
            </tr>
        </table>
        <input name="guardar" type="submit" value="Guardar">
 <input name="cancelar" type="submit" value="Cancelar">
    </td>
    
        
    <td align="left" valign="top">
	
       <center>Historial reportes de la guia:</center>
        <br>
		Fase_reporte Observacion
        <br>
			<?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['i']->step = 1;$_smarty_tpl->tpl_vars['i']->total = (int)ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? sizeof($_smarty_tpl->getVariable('historial')->value)+1 - (0) : 0-(sizeof($_smarty_tpl->getVariable('historial')->value))+1)/abs($_smarty_tpl->tpl_vars['i']->step));
if ($_smarty_tpl->tpl_vars['i']->total > 0){
for ($_smarty_tpl->tpl_vars['i']->value = 0, $_smarty_tpl->tpl_vars['i']->iteration = 1;$_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total;$_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++){
$_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration == 1;$_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration == $_smarty_tpl->tpl_vars['i']->total;?>
			<?php  $_smarty_tpl->tpl_vars['a'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('historial')->value[$_smarty_tpl->tpl_vars['i']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['a']->key => $_smarty_tpl->tpl_vars['a']->value){
?> 
				<?php echo $_smarty_tpl->tpl_vars['a']->value;?>

			<?php }} ?>
			<?php }} ?>		
    
    </td>  
    
 </tr> 
 
</table>
    </body>
</html>
